News for hackers. Stuff that matters.
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`.
Re:Just tell me how to use Go Modules by dnautics on Tuesday December 11, 2018 @01:01AM (#18653513)
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)...
Re:Just tell me how to use Go Modules by bluk on Tuesday December 11, 2018 @10:44AM (#18656035)
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?
Re:Just tell me how to use Go Modules by ngrilly on Tuesday December 11, 2018 @04:48AM (#18654202)
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.

https://kotlinlang.org/docs/reference/data-classes.html

Re:Just tell me how to use Go Modules by ngrilly on Tuesday December 11, 2018 @05:58AM (#18654494)
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.

Re:Just tell me how to use Go Modules by dcow on Tuesday December 11, 2018 @12:43PM (#18657066)
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.