discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Customiser descriptions

NH
nop head
Wed, Sep 30, 2020 11:08 PM

Do customiser variable descriptions need to be on the line before the
variable, rather than on the same line where the ranges are defined. If so,
why?

Do customiser variable descriptions need to be on the line before the variable, rather than on the same line where the ranges are defined. If so, why?
TP
Torsten Paul
Wed, Sep 30, 2020 11:21 PM

On 01.10.20 01:08, nop head wrote:

Do customiser variable descriptions need to be on the
line before the variable, rather than on the same line
where the ranges are defined.

Yes.

If so, why?

Because that's how Thingiverse/MakerBot defined it:
https://customizer.makerbot.com/docs

ciao,
Torsten.

On 01.10.20 01:08, nop head wrote: > Do customiser variable descriptions need to be on the > line before the variable, rather than on the same line > where the ranges are defined. Yes. > If so, why? Because that's how Thingiverse/MakerBot defined it: https://customizer.makerbot.com/docs ciao, Torsten.
NH
nop head
Wed, Sep 30, 2020 11:25 PM

I see. Shame they didn't allow it after the ranges.

On Thu, 1 Oct 2020 at 00:22, Torsten Paul Torsten.Paul@gmx.de wrote:

On 01.10.20 01:08, nop head wrote:

Do customiser variable descriptions need to be on the
line before the variable, rather than on the same line
where the ranges are defined.

Yes.

If so, why?

Because that's how Thingiverse/MakerBot defined it:
https://customizer.makerbot.com/docs

ciao,
Torsten.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

I see. Shame they didn't allow it after the ranges. On Thu, 1 Oct 2020 at 00:22, Torsten Paul <Torsten.Paul@gmx.de> wrote: > On 01.10.20 01:08, nop head wrote: > > Do customiser variable descriptions need to be on the > > line before the variable, rather than on the same line > > where the ranges are defined. > > Yes. > > > If so, why? > > Because that's how Thingiverse/MakerBot defined it: > https://customizer.makerbot.com/docs > > ciao, > Torsten. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
TP
Torsten Paul
Wed, Sep 30, 2020 11:49 PM

On 01.10.20 01:25, nop head wrote:

I see. Shame they didn't allow it after the ranges.

I guess that would make it much more difficult to parse.

Even a "better?" or native style, similar to attributes
in other languages would put the extra information in
front of the variable. Why would you want to have it
on the same line? For minimizing line count?

Rust attributes:

#[allow(non_camel_case_types)]
type int8_t = i8;

Java annotations:

@Persistent
protected String s = null;

As those are actually part of the normal language
it's possible to put them on the same line, at
least in some languages:

@Persistent protected String s = null;

ciao,
Torsten.

On 01.10.20 01:25, nop head wrote: > I see. Shame they didn't allow it after the ranges. I guess that would make it much more difficult to parse. Even a "better?" or native style, similar to attributes in other languages would put the extra information in front of the variable. Why would you want to have it on the same line? For minimizing line count? Rust attributes: #[allow(non_camel_case_types)] type int8_t = i8; Java annotations: @Persistent protected String s = null; As those are actually part of the normal language it's possible to put them on the same line, at least in some languages: @Persistent protected String s = null; ciao, Torsten.
NH
nop head
Thu, Oct 1, 2020 7:29 AM

Why would you want to have it on the same line? For minimizing line count?

Yes exactly. The range is defined in a comment on the same line so I
expected anything after the range to be the description. Not exactly hard
to parse.

But I can see you wouldn't want to break compatibility with Thingiverse

On Thu, 1 Oct 2020 at 00:50, Torsten Paul Torsten.Paul@gmx.de wrote:

On 01.10.20 01:25, nop head wrote:

I see. Shame they didn't allow it after the ranges.

I guess that would make it much more difficult to parse.

Even a "better?" or native style, similar to attributes
in other languages would put the extra information in
front of the variable. Why would you want to have it
on the same line? For minimizing line count?

Rust attributes:

#[allow(non_camel_case_types)]
type int8_t = i8;

Java annotations:

@Persistent
protected String s = null;

As those are actually part of the normal language
it's possible to put them on the same line, at
least in some languages:

@Persistent protected String s = null;

ciao,
Torsten.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

> Why would you want to have it on the same line? For minimizing line count? Yes exactly. The range is defined in a comment on the same line so I expected anything after the range to be the description. Not exactly hard to parse. But I can see you wouldn't want to break compatibility with Thingiverse On Thu, 1 Oct 2020 at 00:50, Torsten Paul <Torsten.Paul@gmx.de> wrote: > On 01.10.20 01:25, nop head wrote: > > I see. Shame they didn't allow it after the ranges. > > I guess that would make it much more difficult to parse. > > Even a "better?" or native style, similar to attributes > in other languages would put the extra information in > front of the variable. Why would you want to have it > on the same line? For minimizing line count? > > Rust attributes: > > #[allow(non_camel_case_types)] > type int8_t = i8; > > Java annotations: > > @Persistent > protected String s = null; > > As those are actually part of the normal language > it's possible to put them on the same line, at > least in some languages: > > @Persistent protected String s = null; > > ciao, > Torsten. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >