lamdu/lamdu

Cmd+Right to move if-expression's condition to true branch

Open

#199 建立於 2022年12月7日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Haskell (1,894 star) (75 fork)batch import
UIgood first issuehelp wanted

描述

It appears to be a common case both in doing the Advent of Code questions and also other examples such as https://twitter.com/watware/status/1574778141234659336 to want to change a piece of code to be a branch of an if-expression. Currently, augmenting with an "if" puts the expression in the condition. Perhaps that's not the best default as it may be more common to wrap in an if something that wasn't the condition? Anyhow if keeping the current behavior we want to at least make it easy to push this expression into the branch.

貢獻者指南