Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jmull
on July 4, 2024
|
parent
|
context
|
favorite
| on:
Jeffrey Snover and the Making of PowerShell
I think @("value") is enough.
I use
[array]$Ary = "value"
Arnavion
on July 4, 2024
[–]
I haven't used PS in many years, but I do remember `@("value")` would still end up unwrapping the single-element array back into its element in some situations, and the only sure-fire way to get an array was `, "value"` or `@(, "value")`
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
I use