Skip to content

Conversation

yoheiMune
Copy link

Hi,

I got the error at loading a toml file below.

position = [51.01973684210527,15]

In JS context, both Float and Integer are the same type - Number, so I think, there is no need to distinguish between them.

I hope you check my change.
Thank you.

@yoheiMune yoheiMune changed the title Loose type check between and . Both of them are in the javascript context. Loose type check between Integer and Float. Both of them are same in the javascript context. Feb 24, 2017
@yoheiMune yoheiMune changed the title Loose type check between Integer and Float. Both of them are same in the javascript context. Loose type check between Integer and Float. Both of them are the same in the javascript context. Feb 24, 2017
@hshindo
Copy link

hshindo commented Mar 2, 2017

@BinaryMuse
Any chance to get this merged?

@BinaryMuse
Copy link
Owner

I'm not 100% sure this is per spec (that arrays can contain both floats and ints if the underlying language treats them the same). Curious if @mojombo has thoughts.

Even if not, I could imagine a "loose mode" or something that might allow this.

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.

3 participants