Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's not that far from PL/SQL and PL/PGSQL

    CREATE OR REPLACE FUNCTION foo (int bar0) RETURNS int language plpgsql security definer volatile as $$

    begin

    return $1 + 1;

    end;

    $$;


I was thinking COBOL.

Edit: added sample.

http://www.csis.ul.ie/cobol/examples/Conditn/IterIf.cbl


Now, there is a program that an ordinary person might be able to read to understand what it does.


Which is the reason I can't stand SQL


and yet it is still a lower ratio or boilerplate to code (in nontrivial examples) than you get with C++ or Java.....


In my defense, I dislike C++ and Java too. :)




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: