recentpopularlog in

struct

« earlier   
A First Look at Java Inline Classes
Java currently supports only primitive types and object references. Project Valhalla extends this by introducing inline classes which are new types that exhibit some behaviors of both types of value.
valueclass  java  struct  article  intro 
2 days ago by gilberto5757
Ruby Objects and Dot Syntax
Person = Struct.new(:name, :city)
=> Person

person = Person.new('Rob', 'San Francisco')
=> #<struct Person name="Rob", city="San Francisco">

person.city
=> "San Francisco"


require 'ostruct'

person = OpenStruct.new
=> #<OpenStruct>

person.name = 'Rob'
=> "Rob"

person.city = 'San Francisco'
=> "San Francisco"

person.city
=> "San Francisco"
Ruby  struct  ostruct 
july 2019 by meFavs
The Go Playground
I *think* what is happening here is that "ignoring" S in the embedder causes the embedded struct's S to appear (since the parent's "S" is ignored).
go  golang  struct 
june 2019 by mjs
jpillora/opts: A Go (golang) package for building frictionless command-line interfaces
A Go (golang) package for building frictionless command-line interfaces - jpillora/opts
go  golang  flags  2019  struct  nested  json  config  important 
may 2019 by vonc

Copy this bookmark:





to read