Re:Near Future of Programming Languages [pdf]
by vorg on Friday November 03, 2017 @01:12AM
(#15616849)
> provides a (runtime) safe and low-verbosity way to write dynamically-typed code, i.e. `interface{}`
Since Go 1.9 was released with its new Type Aliases feature a few months ago, the verbosity is even lower. By putting `type any = interface{}` somewhere in your package, you can just write `any` instead of the verbose `interface{}` everywhere you want some dynamic typing.
Since Go 1.9 was released with its new Type Aliases feature a few months ago, the verbosity is even lower. By putting `type any = interface{}` somewhere in your package, you can just write `any` instead of the verbose `interface{}` everywhere you want some dynamic typing.