Menu

#536 set method for data structure classes

feature
pending-accepted
nobody
None
5
2014-11-07
2014-11-01
Anonymous
No

Patch to add "set" method to get, set, getsize, setsize, element, append.

1 Attachments

Discussion

  • Miller Puckette

    Miller Puckette - 2014-11-03
    • status: open --> pending-accepted
     
  • Miller Puckette

    Miller Puckette - 2014-11-03

    Also added some more stuff to allow wild-card templates, and updated help files.

     
  • Anonymous

    Anonymous - 2014-11-07

    Hm, I'd rather punt on empty-symbol syntax for positional args. I think future use of commas in args to specify post-init-time methods solves that problem more elegantly.

    In the meantime, what about separating this out into two methods-- "template" for setting the template name, and "field" for setting the field? That way [template(--[set foo bar] would set the template to empty-symbol and perhaps trigger the wildcard behavior.

    The downside is you'd have to do [template(---[set foo bar bee boo] when you want to set an empty template for multiple fields, as opposed to just [set - bar bee boo]. (But that's the same with setting an empty symbol in [select].)

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB