I would not want to use a bash script as a config file, for example.
The Dhall Configuration Language
31–40 of 192 posts
Re: The Dhall Configuration Language
#32{ home = "/home/bill" , privateKey = "/home/bill/.ssh/id_ed25519" , publicKey = "/home/blil/.ssh/id_ed25519.pub" } This is the most awkward abuse of formatting I've seen in a long time. Just allow/require a final trailing comma, and this nonsense goes away
I would actually prefer no comma's {:home "/home/bill" :private-key "/home/bill/.ssh/id_ed25519" :public-key "/home/bill/.ssh/id_ed25519.pub"}
Re: The Dhall Configuration Language
#33 {- You can optionally add types
`x : T` means that `x` has type `T`
-}
let Config : Type =
Config's type is Type?Clear as mud.
Re: The Dhall Configuration Language
#34Re: The Dhall Configuration Language
#35Earlier quoted context omitted.
I would actually prefer no comma's {:home "/home/bill" :private-key "/home/bill/.ssh/id_ed25519" :public-key "/home/bill/.ssh/id_ed25519.pub"}
That's the same as a leading comma.
Re: The Dhall Configuration Language
#36Apparently I'm in the minority that feels config languages should be little more than namespaces and key-value storage and should not be programmable. I would not want to use a bash script as a config file, for example.
And, have you ever worked with giant configs in json or yaml? It becomes incredibly painful to manage.
Re: The Dhall Configuration Language
#37{ home = "/home/bill" , privateKey = "/home/bill/.ssh/id_ed25519" , publicKey = "/home/blil/.ssh/id_ed25519.pub" } This is the most awkward abuse of formatting I've seen in a long time. Just allow/require a final trailing comma, and this nonsense goes away
Re: The Dhall Configuration Language
#38{- You can optionally add types `x : T` means that `x` has type `T` -} let Config : Type = Config's type is Type? Clear as mud.
Re: The Dhall Configuration Language
#39Re: The Dhall Configuration Language
#40{- You can optionally add types `x : T` means that `x` has type `T` -} let Config : Type = Config's type is Type? Clear as mud.
Config is a type, so it's type is Type.
[EDIT] I mean, you can almost "who's on first?" this.
"OK, what type do you want this to be?"
"Type."
"Yes, what type do you want it to be?"
"Type."
"Great, ok, yes, the type, what type is Config?"
"Type."
"WHAT IS THE NAME OF THE TYPE YOU WANT CONFIG TO BE???"
"Type."
flips desk