Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove implicit "set format" from text formatting commands #158

Closed
chilimangoes opened this issue Aug 17, 2016 · 0 comments
Closed

Remove implicit "set format" from text formatting commands #158

chilimangoes opened this issue Aug 17, 2016 · 0 comments
Assignees
Labels
Enhancement Enhancement of an existing feature

Comments

@chilimangoes
Copy link
Collaborator

As suggested by @seekM on the Gitter channel, it's counter-intuitive and not very useful to implicitly set the format mode any time one of the explicit formatting commands ("Gerrish gum bow", "snake bow", "tie bow", etc) is used. Instead, it's more often the case that a user will want to call "set format" with a format that is used heavily through out their code and then use explicit formatting command to handle exceptions.

For example, if I'm working on a public interface in C#, the class and member names would all use "tie gum bow" and the modifiers/keywords/etc would all be "laws bow." Rather than explicity saying the format I want for each, or having to call "set format" to switch back and forth between the two formats, I instead want to say the following:

  • set format tie gum bow to set Pascal case as the primary format I want to use
  • laws bow public interface ace format my class which would output public interface MyClass
  • laws bow string ace format some property which would output string SomeProperty
  • etc...

(Obviously, there are simpler ways to write the above code with IDE templates, specialized language commands in Caster, etc)

@chilimangoes chilimangoes added the Enhancement Enhancement of an existing feature label Aug 17, 2016
@chilimangoes chilimangoes self-assigned this Aug 17, 2016
chilimangoes added a commit to chilimangoes/caster that referenced this issue Aug 18, 2016
- Remove implicit "set format".
- Added "clear caster formatting" and "peek format" commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Enhancement of an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant