• 0 Posts
  • 811 Comments
Joined 2 years ago
cake
Cake day: June 21st, 2023

help-circle







  • According to cppreference:

    Unless otherwise specified, all standard library objects that have been moved from are placed in a “valid but unspecified state”, meaning the object’s class invariants hold (so functions without preconditions, such as the assignment operator, can be safely used on the object after it was moved from)

    I would expect this to be true of all types. An easy way to do this is to null an internal pointer, set an internal fd to a sentinel, etc and check for that when needed, but this could be an easy source of errors if someone’s not paying attention.

    Ideally it would be statically checked if a value is used after being moved, but that’s just my Rust brain speaking.





  • Not a judge, so take with a grain of salt, but I don’t see why a creature can’t be more than one player’s commander at the same time. 903.3b would apply twice here - one for each commander that was part of the pair.

    So basically, if my reading is correct, combat damage dealt by the melded creature would be treated as commander damage by both of its components. 8 damage from an attack would be 8 commander damage from each (16 commander damage total, but split between both commanders as 8 and 8).


  • I’m not suggesting that MTGA should be a rules reference, just that it agrees with the commenter.

    I haven’t found anywhere in the CR that really mentions this interaction. The closest I found was 608.2f which doesn’t really apply here since it’s not an action being taken on multiple players/objects, but that rule says to create the tokens simultaneously if possible (and I would think it’s possible to create multiple tokens simultaneously since order here doesn’t matter).

    Edit: …per prevention event, if that wasn’t clear. So each time damage is prevented.


  • For what it’s worth, testing on MTGA, Brass’s Bounty + Peregrin Took creates only one food token despite the wording:

    For each land you control, create a Treasure token.

    It’s not exactly the same, but does seem to support the idea that each damage event creates that many tokens simultaneously rather than that many token-creation events.


  • This is the text for Inkshield for context:

    Prevent all combat damage that would be dealt to you this turn. For each 1 damage prevented this way, create a 2/1 white and black Inkling creature token with flying.

    Not a judge, but I’d imagine it works the way you described. The way it’s worded implies that it’s multiple events creating tokens, once per damage prevented. Since you’re creating 1 token multiple times, you apply the replacement to each event.

    Would be curious to hear a judge’s take on this though.



  • Where do you draw the line on “smart” features? Tab should not add indent spaces? Encoding or newline mechanisms? Determining EOF newline?

    For a very basic default editor, I would expect it to include only what I typed, no “smart” features, no IDE features, nothing else, and use CRLF (on Windows) for newlines with at most a setting to configure it in the editor for that session.

    Basically, I wouldn’t expect anything more than what nano does. If I want a fancy CLI editor, I’ll install one. At its core though, it should exist only to edit the text content of a text file and do nothing else. It should be as stable as possible, and have as little scope as possible, in my opinion.

    With that said, basic text editing features, like undo/redo and cut/copy/paste would be nice. Bonus points if it even works with the system clipboard.

    Edit: to add to the question of whether an automatic newline should be added, Windows has no requirement for terminating text documents with newlines, so I would not expect one. What happens in POSIX environments by tools written for those environments seems irrelevant here - if a valid text document in POSIX must be terminated by a newline, then a text editor there would naturally be expected to add one, or at least support adding one, but that has nothing to do with Windows.


  • The only part of this process I’d consider automating with a LLM is summarizing the changes, and even then I’d only be interested looking at a suggested changelog, not something fully automated.

    It’s amazing to me how far people will go to avoid writing a simple script. Thankfully determinism isn’t a requirement for a release pipeline. You wouldn’t want all of your releases to go smoothly. That would be no fun.