Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Riverheart
on May 2, 2020
|
parent
|
context
|
favorite
| on:
Language Design: Use 'ident: Type' not 'Type ident...
Same in Powershell except they use square brackets
[string] $foo = "foo"
zelphirkalt
on May 2, 2020
[–]
In my brain the instantly translates to "list of strings". Not sure square brackets are such a good choice.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[string] $foo = "foo"