-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Finalisation tasks for merge:
- @jacobpake to approve final merge!
See also:
Done/dropped:
- Finalisation tasks for RSECon presentation:
- Comments
- Doc comments
- Paragraph
- Migrate
articlewebsite to new syntax Integrate new specific syntax tests with main test suitedropped after discussion with @jacobpake-
article/non-renewablesbroken: only one point in scatterplot, dependencies borked - Improvements to error reporting ✅ enough on this for now
- Highlightable instances in new prettyprinter
- Migrate remaining websites
- Merge
miscexamples intoarticle
- Merge
- Migrate all test cases to new syntax
- incomplete patterns error in
dtwcases
- incomplete patterns error in
- Restore comments in
prelude.fld Restore indentation strictness?see Remaining indentation fixes #1440- Remove migration tests and infrastructure
- Delete spurious files in
fluid(e.g.test.fld,pi.fld)
- Delete spurious files in
- Incorporate parenthesis improvements from old prettyprinter
- @rolyp to review and finalise
- Restore comments to
graphics.fld -
Parse/Constants- Where are these used?
- Some redundancy with
Parse/Parser.purs/keywords
-
Pretty.Constants-- thought we decided not to use the constand definitions after all? -
Pretty.Helpers->Util -
prettyParseErrorprobably doesn't need its own module -
Pretty.Configmay not need its own module? - Bump patch version again
- Delete our version of
Array.transpose
- Restore comments to
One idea to make Fluid an easier target for generative AI would be to make the syntax resemble a pure dialect of Python.
I think there is only so far you could push this, partly because of the purity, and also because the Python version of pattern matching is pretty clunky:
def describe_shape(shape):
match shape:
case Circle(radius):
return f"A circle with radius {radius}"
case Rectangle(width, height):
return f"A rectangle with width {width} and height {height}"
case _:
return "Unknown shape"But one could imagine allowing something like the following:
def describe_shape(Circle(radius)):
return f"A circle with radius {radius}"
def describe_shape(Rectangle(width, height)):
return f"A rectangle with width {width} and height {height}"
def describe_shape(_):
return "Unknown shape"A secondary (and potentially significant) advantage would be that Python folk would find Fluid an easy language to switch to. I would be tempted to do this sooner rather than later, but unfortunately this would be a non-trivial amount of work, not least because Python is indentation-sensitive.
Reactions are currently unavailable
Sub-issues
Metadata
Metadata
Labels
Type
Projects
Status
Done