Raku / old-design-docs

Raku language design documents
https://design.raku.org/
Artistic License 2.0
124 stars 36 forks source link

Add :createonly to valid named parameters for open() #93

Closed hoelzro closed 7 years ago

hoelzro commented 9 years ago

I would like to propose a new named parameter for open, namely :createonly. rename, copy, and move already support it, so I think it's only natural that open does as well.

ab5tract commented 9 years ago

Can we have :create-only instead? There are still a few annoying crushed (aka non) cased variables/identifiers/adverbs throughout the core setting, and I would personally like to avoid adding more.

hoelzro commented 9 years ago

@ab5tract As long as we change all of the other createonlys to create-only, I support that.

ab5tract commented 9 years ago

Okay, that sounds like a separate ticket/PR. No need to block this patch on that account, I suppose.

zoffixznet commented 7 years ago

This seems a bit stale, so closing this.

open already has exclusive mode with :x. IMO it's overengineered with a billion arguments that are nearly the same as it is, so I rather not add yet another alias for :x. And sadly, 'createonly' wasn't renamed to 'create-only' in any of the other routines...