Skip to content

Conversation

@LPTK
Copy link
Contributor

@LPTK LPTK commented Dec 9, 2025

  • Use switch instead of if/else chains when it makes sense
  • Add a couple of mostly useless (for now) smart constructors

@AnsonYeung I cherry-picked and refined your switch commit to avoid causing unnecessary diffs in #360.

AnsonYeung and others added 3 commits December 10, 2025 01:22
# Conflicts:
#	hkmc2/shared/src/main/scala/hkmc2/codegen/HandlerLowering.scala
#	hkmc2/shared/src/test/mlscript-compile/Predef.mjs
#	hkmc2/shared/src/test/mlscript-compile/Runtime.mjs
#	hkmc2/shared/src/test/mlscript/codegen/PartialApps.mls
#	hkmc2/shared/src/test/mlscript/codegen/RandomStuff.mls
#	hkmc2/shared/src/test/mlscript/codegen/SanityChecks.mls
#	hkmc2/shared/src/test/mlscript/codegen/While.mls
#	hkmc2/shared/src/test/mlscript/handlers/Debugging.mls
#	hkmc2/shared/src/test/mlscript/handlers/Effects.mls
#	hkmc2/shared/src/test/mlscript/handlers/EffectsHygiene.mls
#	hkmc2/shared/src/test/mlscript/handlers/RecursiveHandlers.mls
#	hkmc2/shared/src/test/mlscript/handlers/StackSafety.mls
#	hkmc2/shared/src/test/mlscript/lifter/StackSafetyLift.mls
#	hkmc2/shared/src/test/mlscript/std/FingerTreeListTest.mls
@LPTK LPTK requested a review from AnsonYeung December 9, 2025 18:12
@LPTK LPTK merged commit 36d9b96 into hkust-taco:hkmc2 Dec 10, 2025
1 check passed
@LPTK LPTK deleted the hkmc2-improve-codegen branch December 10, 2025 10:18
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.

2 participants