Skip to content

Allow trailing dot before exponent in float literal#226

Merged
binji merged 1 commit intomasterfrom
float_trailing_dot
Feb 1, 2016
Merged

Allow trailing dot before exponent in float literal#226
binji merged 1 commit intomasterfrom
float_trailing_dot

Conversation

@binji
Copy link
Member

@binji binji commented Feb 1, 2016

@rossberg
Copy link
Member

rossberg commented Feb 1, 2016

LGTM, although I wonder why anybody would want this.

@binji
Copy link
Member Author

binji commented Feb 1, 2016

Not sure, but @jfbastien was surprised it didn't work in sexpr-wasm. I guess it's commonly supported in C-like languages.

@jfbastien
Copy link
Member

In C it's common to write 1. to get a double and 1.f to get a float. Without the . it would be an integral value. That naturally extends to floating-point values with exponents e.g. 1.e300.

With wasm it's not clearly as useful because you can't mix types and get conversions as C gives you. I therefore agree it's not useful for wasm per-se, but it's useful for people who are used to their trailing dot :-)

binji added a commit that referenced this pull request Feb 1, 2016
Allow trailing dot before exponent in float literal
@binji binji merged commit 6e083f0 into master Feb 1, 2016
@binji binji deleted the float_trailing_dot branch February 1, 2016 21:37
dhil pushed a commit to dhil/webassembly-spec that referenced this pull request Mar 2, 2023
* Fixes the typing rule of CAUGHTadm as suggested in:
WebAssembly/exception-handling#229 (comment)
* Applying suggestion from PR WebAssembly#241
https://github.com/WebAssembly/exception-handling/pull/241/files/201ff276be6c458e7a819662eb2862bd475f2fcd..f97c9d108a999c3c3fd30f25554a113822bed1b8#r1030097793
* Applied suggestions from code review, fixed notation, also adding the missing _n to CAUGHTadm.
  The subscript is introduced by the changes in PR WebAssembly#226
dhil pushed a commit to dhil/webassembly-spec that referenced this pull request Mar 2, 2023
…ly#226)

- Add prose for reduction rules involving thrown exceptions.
- Change administrative handler instructions and adding caught exceptions to the runtime stack.
  + In particular:
     * Switched to
        handler ::= (tagaddr? instr*)* | labelidx
        exn ::= tagaddr val*
        instr ::= … | handler_n{handler} instr* end | caught_n{exn} instr* end
       removing DELEGATEadm
- Changed prose to just push and pop handlers and exceptions, in the runtime,
  in the execution steps of the instructions, in the formal overview,
  and partly in appendix/properties.

-  Apply suggestions from code review

Co-authored-by: Heejin Ahn <aheejin@gmail.com>
Co-authored-by: Andreas Rossberg <rossberg@mpi-sws.org>
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