Jira (PUP-477) Implement Strict Numbers

0 views
Skip to first unread message

Henrik Lindberg (JIRA)

unread,
Jan 15, 2015, 4:07:07 PM1/15/15
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
 
Puppet / Improvement PUP-477
Implement Strict Numbers
Change By: Henrik Lindberg
Scrum Team: Language
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Feb 11, 2016, 9:24:03 PM2/11/16
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Story Points: 2 1
This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Feb 11, 2016, 9:45:03 PM2/11/16
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Background
---
* < 3.x && 3.x without future parser - all values are strings, and numeric operations has a variety of problems
*
3x  future parser  has  a  hybrid string / number auto type conversion.  Early versions of the future parser had paradoxes in handing numeric values that were fixed late in the 3.x series (use 3.8.x with future parser).
* 4.x is the same as 3.x future parser

The  experimental  current  4x evaluator also has  this, but with currently fixed paradoxes in this handling  automatic conversion between string and number . It continues to be a problem balancing between "being helpful" and "being correct and free of paradox".

It would be much cleaner to never automatically convert between numbers and strings
 (except possibly at boundaries; converting numerical facts in string form .

This Feature
---
When {{\--strict}} mode is on, arithmetic on a {{String}} leads
 to  real numbers)  a warning or error as dictated by the mode .  When strict is 'ignored' auto conversion still takes place.

Depends on
---
This feature depends on PUP-5889, that there is a strict flag, and PUP-484 since it is currently not possible to convert values.

Henrik Lindberg (JIRA)

unread,
Feb 11, 2016, 9:46:03 PM2/11/16
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Background
---
-
* < 3.x && 3.x without future parser - all values are strings, and numeric operations has a variety of problems
* 3x future parser has a hybrid string / number auto type conversion. Early versions of the future parser had paradoxes in handing numeric values that were fixed late in the 3.x series (use 3.8.x with future parser).
* 4.x is the same as 3.x future parser

The current 4x evaluator also has automatic conversion between string and number. It continues to be a problem balancing between "being helpful" and "being correct and free of paradox".

It would be much cleaner to never automatically convert between numbers and strings.

This Feature
---
-
When {{\--strict}} mode is on, arithmetic on a {{String}} leads to a warning or error as dictated by the mode. When strict is 'ignored' auto conversion still takes place.

Depends on
---
-
This feature depends on PUP-5889, that there is a strict flag, and PUP-484 since it is currently not possible to convert values.

Henrik Lindberg (JIRA)

unread,
Sep 7, 2016, 6:12:19 PM9/7/16
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Team: Puppet Developer Support
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
May 15, 2017, 3:32:02 PM5/15/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Fix Version/s: PUP 4.y

Moses Mendoza (JIRA)

unread,
May 18, 2017, 1:46:41 PM5/18/17
to puppe...@googlegroups.com
Moses Mendoza updated an issue
Change By: Moses Mendoza
Labels: triaged

Josh Cooper (Jira)

unread,
May 17, 2023, 2:15:01 PM5/17/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Puppet Developer Experience
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Josh Cooper (Jira)

unread,
May 17, 2023, 2:15:02 PM5/17/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Labels: validation

Josh Cooper (Jira)

unread,
May 17, 2023, 2:16:02 PM5/17/23
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-477
 
Re: Implement Strict Numbers

Strict mode is enabled by default in Puppet 8 and it disallows implicit coersions, so closing this.

Henrik Lindberg (Jira)

unread,
May 23, 2023, 4:13:01 AM5/23/23
to puppe...@googlegroups.com
Henrik Lindberg commented on Improvement PUP-477
 
Re: Implement Strict Numbers

Josh Cooper at some point you may want to make "strict numbers" the only behavior (not behind the strict-flag) and some logic could then be removed.

This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo

Josh Cooper (Jira)

unread,
May 23, 2023, 2:42:01 PM5/23/23
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages