News for hackers. Stuff that matters.
Re:The naked truth about writing a programming language (2014) by daenz on Saturday May 02, 2020 @04:17PM (#23054577)
It's simple, but it's fundamentally reductionist. You can ease the cognitive load by making certain programming structures first-class citizens in the language.
Re:The naked truth about writing a programming language (2014) by F-0X on Saturday May 02, 2020 @05:08PM (#23054918)
> You can ease the cognitive load by making certain programming structures first-class citizens in the language.

Which, in every s-expression based language I'm aware of, can be achieved using macros.

Re:The naked truth about writing a programming language (2014) by chrisseaton on Saturday May 02, 2020 @05:10PM (#23054934)
Isn't that the point - s-expressions aren't good enough so people work around them by writing more conventional languages and parsers (the reader macros) to avoid having to write in them.
Re:The naked truth about writing a programming language (2014) by catalogia on Saturday May 02, 2020 @05:14PM (#23054979)
I don't think that comment was about reader macros. I don't see reader macros used much, while normal macros are frequently used to create new control structures.
Re:The naked truth about writing a programming language (2014) by amelius on Saturday May 02, 2020 @04:24PM (#23054629)
Yes but now you have to worry about parentheses and at what nesting level certain constructs should live.
Re:The naked truth about writing a programming language (2014) by pfdietz on Saturday May 02, 2020 @08:06PM (#23055878)
An adequate editor with autoindent and paren matching solves those problems completely.