Skip to content

Add examples for creating objects in snapshot.html#177

Closed
yukulele wants to merge 1 commit intoopenscad:mainfrom
yukulele:patch-1
Closed

Add examples for creating objects in snapshot.html#177
yukulele wants to merge 1 commit intoopenscad:mainfrom
yukulele:patch-1

Conversation

@yukulele
Copy link
Copy Markdown

No description provided.

@jordanbrown0
Copy link
Copy Markdown
Contributor

I thought I already did that, but I was wrong. Thanks.

I have three concerns:

  • There are four forms allowed: key=val, [ [ key, val ], ...], obj, and [ [ key ] ], and you only show two of them.
  • You're allowed to mix-and-match the forms as desired, and you don't represent that.
  • Showing all of the forms, and showing that they can be mixed, seems like it would be more space in the cheat sheet than would be worthwhile.

I have two ideas, neither of which I'm really happy with:

  • Don't say anything about argument lists; just say object(...). Leave the details to the manual.
  • Show all four forms together, e.g. object(key1=val1, obj, [ [ "key2", val2 ], [ "rmkey" ] ], ...).

@jordanbrown0
Copy link
Copy Markdown
Contributor

Combined this with my own thoughts and thoughts from #159 into #180.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants