News for hackers. Stuff that matters.
Re:The Oberon+ Programming Language by shadowofneptune on Saturday March 18, 2023 @12:34PM (#35210507)
This does feel then like a matter of taste. While Pascal's predecessor language Algol did allow syntax like that, adding it back to Pascal-like languages would make it into a different kind of language.
Re:The Oberon+ Programming Language by ZoomZoomZoom on Saturday March 18, 2023 @12:47PM (#35210651)
What makes the language what it is is rather a philosophical question. I don't think I agree with you on this specific point.

I'm not against evolution, especially when you have others to test the feature extensively for years. But I'm not a language designer and my opinion on the matter holds no weight.

Re:The Oberon+ Programming Language by neutrono on Saturday March 18, 2023 @08:06PM (#35214520)
Ada 2012 has expression functions

    declare
        function f (i: Integer) returns Integer is ( i * 2 );
         x : Integer;
    begin
        x := f(21);
    end;