News for hackers. Stuff that matters.
Re:Ask HN: What programming language features or ideas do yo... by zzo38computer on Sunday May 26, 2019 @05:01PM (#20017473)
Macros (including both preprocessor and coprocessor kinds, and both hygienic and unhygienic), goto, parameterized types (especially GADTs; what restrictions apply depend on the program language), inline assembly code (and perhaps also inline C, SQL, LLVM, or whatever is applicable to the particular programming language in use), pattern matching, currying, byte arrays, lambda functions, range limited types (for purposes of program optimization), conditional compilations (by use of macros), evasive and non-evasive exceptions, setjmp/longjmp, compile-time calculations and assertions, zero-length arrays, non-Unicode mode, better bit manipulation operators, having enough ropes to hang yourself and also a few more just in case, etc.

(Note, however, there are different program languages for different uses, and some things may be not applicable, or only partially applicable, to some kind of programming languages, I think.)

Re:Ask HN: What programming language features or ideas do yo... by jolmg on Tuesday May 28, 2019 @06:06PM (#20034894)
Homoiconicity, like that found in Lisp or TCL. I have this small system orchestration framework of sorts that I use to maintain my network-wide configuration and send commands to multiple machines. I wish I didn't have to work with code in quote-delimited strings and all the escaping involved. It wouldn't be a problem in either Lisp or TCL.
Re:Ask HN: What programming language features or ideas do yo... by Benjmhart on Sunday May 26, 2019 @04:10AM (#20013734)
Pattern match, curry by default, function composition, metaprogramming through custom operators, Sum types.
Re:Ask HN: What programming language features or ideas do yo... by quickthrower2 on Sunday May 26, 2019 @05:14AM (#20013948)
Get rid of retched compulsory nullability and offer optionally optional types. Could be via ADT style Maybe a = Just a | Nothing, or just a language feature eg Mytype vs Mytype?
Re:Ask HN: What programming language features or ideas do yo... by frou_dh on Sunday May 26, 2019 @02:00AM (#20013371)
Sum-types and an exhaustive pattern-matching construct. It's borderline criminal to design a language with a static type system in this century and leave that out.
Re:Ask HN: What programming language features or ideas do yo... by remilouf on Sunday May 26, 2019 @02:30AM (#20013474)
Having used Erlang for a side project recently: pattern matching and supervision trees.
Re:Ask HN: What programming language features or ideas do yo... by karmakaze on Sunday May 26, 2019 @11:32AM (#20015405)

  * Structural typing
  * Uniform access
  * Lazy evaluation
Re:Ask HN: What programming language features or ideas do yo... by itcheeze on Sunday May 26, 2019 @08:36AM (#20014600)
Software Transactional Memory like Clojure has