GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    lumi :blobcatnom: :blobcatflower: (lumi@snug.moe)'s status on Friday, 18-Sep-2026 21:36:16 JST lumi :blobcatnom: :blobcatflower: lumi :blobcatnom: :blobcatflower:

    thinking about how best to do type unification for structs in femstache

    if i have constraints like fresh a; a ~ { x: bool, y: string }; a ~ { x: bool, z: string }, this should unify as a = { x: bool, y: optional string, z: optional string }

    but the first constraint already replaces all occurences of a with { x: bool, y: string } and then the unification { x: bool, y: string } ~ { x: bool, z: string } happens, which succeeds but can't really "change" the shape of the struct

    thinking of maybe adding a kind of "type shape" thing where { x: int, y: bool } turns into fresh a; member "x" int a, member "y" bool a => a

    hmm

    In conversation about 10 days ago from snug.moe permalink

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • Help
    • About
    • FAQ
    • TOS
    • Privacy
    • Source
    • Version
    • Contact

    GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.