Re:Just tell me how to use Go Modules
by dcow on Tuesday December 11, 2018 @12:50AM
(#18653488)
I would argue `by` and `data` are the two most powerful keywords from any of the modern languages (~last 10 years) maybe next to `go`.
[ Parent
| on HN ]
You should check out the "with" keyword from elixir, (but the #1 all time best elixir feature is the |> (pipe) operator combined with IO.inspect)...
IMO `async/await` (C# / JavaScript), `defer` (Go), and `guard` (Swift) have changed the structure and flow of programs and are commonly used in their respective languages. Why do you believe that `by` and curiously `data` are so powerful?
What does `data` do, and in which language?
Re:Just tell me how to use Go Modules
by letientai299 on Tuesday December 11, 2018 @05:44AM
(#18654429)
I think he means `data` class in kotlin.
Yes, it looks like this. Thanks!
Re:Just tell me how to use Go Modules
by jstimpfle on Tuesday December 11, 2018 @11:38AM
(#18656494)
> `data` > modern
Everything old is new again.
I was considering `data` specifically in the context of the JVM. I understand we’ve had structs for ages but the concept of anything other than a reference is so terrribly foreign to the JVM it has made so many really shitty programs noticeably less shitty.