Giter Site home page Giter Site logo

Comments (10)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024

Original comment by inkytonik on 5 Nov 2009 at 5:04

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from kiama.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024

Original comment by inkytonik on 6 Nov 2009 at 1:29

  • Added labels: Milestone-Release1.1

from kiama.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024

Original comment by inkytonik on 10 Nov 2009 at 5:11

  • Changed state: Accepted

from kiama.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Also, explore whether better typing information makes it possible to overload 
things like strategy and strategyf, 
rule and rulef.

Original comment by inkytonik on 13 Nov 2009 at 3:08

from kiama.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024

Original comment by inkytonik on 21 Oct 2010 at 3:24

  • Added labels: Milestone-Unknown
  • Removed labels: Milestone-Release1.1

from kiama.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024

Original comment by inkytonik on 15 Jun 2012 at 9:29

  • Added labels: Priority-Medium
  • Removed labels: Priority-High

from kiama.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024

Original comment by inkytonik on 4 Jul 2013 at 12:23

  • Added labels: Milestone-1.6, Priority-High
  • Removed labels: Milestone-Unknown, Priority-Medium

from kiama.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
1.6 will change the rule combinator to take a T ==> T partial function instead 
of an Any ==> Any. The semantics will be as before (fail where the function is 
not applicable, succeed otherwise) but there are two ways to fail now: the 
subject term is not a T, or it is a T but the function is not defined at it.

This change ensures that when you write a rule body you can't accidentally make 
it change the type of the subject term. E.g., something like rule[Num] { case 
Num (i) => Add (Num (i), Num (i) } won't compile now since it changes the type 
from Num to Add. The same body with rule[Exp] { ... } will compile if Num and 
Add are sub-types of Exp. Similarly, the following are ok: rule[Num] { case Num 
(i) => Num (i + 1) } or rule[Num] { case _ => Num (1) }.

Use rule[Any] { ... } to get the same situation as in versions before 1.6 where 
the type is not checked.

We don't believe it is possible (or desirable) to try for more checking that 
strategies are applied correctly. Fundamentally, strategies have to be Any => 
Any since we can apply them anywhere in a generic traversal.

Original comment by inkytonik on 20 Dec 2013 at 1:35

  • Changed state: Resolved

from kiama.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024

Original comment by inkytonik on 3 Feb 2014 at 4:24

  • Added labels: Milestone-Release2.0.0
  • Removed labels: Milestone-1.6

from kiama.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024

Original comment by inkytonik on 9 May 2014 at 3:49

  • Added labels: Milestone-Release1.6
  • Removed labels: Milestone-Release2.0.0

from kiama.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.