Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@asgrim
Copy link
Member

@asgrim asgrim commented Aug 3, 2015

This PR aims to solve both #64 and #19.

An alternate PR exists in #67

Depends on PR #96 being merged

@asgrim asgrim added the bug label Aug 3, 2015
@asgrim asgrim self-assigned this Aug 3, 2015
@asgrim asgrim added this to the 1.0.0 milestone Aug 3, 2015
@asgrim asgrim changed the title [WIP] Improved node compilation in CompileNodeToValue (alternate) [WIP] Improved node compilation in CompileNodeToValue (compile solution) Aug 3, 2015
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May want to at least try casting the constant expression to string in here, or else there may be rage

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UnableToCompileNode::fromConstFetch($constNode) maybe?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously it was just returning a string with the const name, (e.g. FOO would compile to "FOO"), but surely this could cause undesired behaviour?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could indeed cause undesired behavior :-(

@asgrim asgrim force-pushed the improved-node-compilation-2 branch from 37ec979 to 1cd4e96 Compare August 5, 2015 07:15
@asgrim asgrim force-pushed the improved-node-compilation-2 branch from 1cd4e96 to 47de68e Compare August 5, 2015 20:40
@asgrim asgrim changed the title [WIP] Improved node compilation in CompileNodeToValue (compile solution) Improved node compilation in CompileNodeToValue (compile solution) Aug 13, 2015
@asgrim asgrim assigned Ocramius and unassigned asgrim Aug 13, 2015
@asgrim
Copy link
Member Author

asgrim commented Aug 13, 2015

@Ocramius I'm proposing this solution (over the eval solution in #67) to be accepted as the preferred for #19 and #64

@asgrim
Copy link
Member Author

asgrim commented Aug 13, 2015

#98 created to improve compileBinaryOp method

Ocramius added a commit that referenced this pull request Aug 13, 2015
Improved node compilation in CompileNodeToValue (compile solution)
@Ocramius Ocramius merged commit 49cba6c into master Aug 13, 2015
@Ocramius Ocramius deleted the improved-node-compilation-2 branch August 13, 2015 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants