/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Stop writing CLI validation. Parse it right the first time
(hackers.pub)
203 points
dahlia
| 1 comments |
06 Sep 25 18:20 UTC
|
HN request time: 0.207s
|
source
1.
SoftTalker
◴[
07 Sep 25 00:52 UTC
]
No.
45154295
[source]
▶
>>45151622 (OP)
#
I like just writing functions for each valid combination of flags and parameters. Anything that isn’t handled is default rejected. Languages like Erlang with pattern matching and guards make this a breeze.
ID:
GO
↑