계약갱신

2026년 7월 10일 09:30분

신명기 29장에서 모압에서 이스라엘과 새로운 언약이 체결됩니다. 이전 언약을 갱신하고 새 조항을 추가합니다. 나는 기존 계약을 버전 업하고 새 조항을 추가하는 계약 갱신기를 만들었습니다.

package com.jesusbornd.deuteronomy;
import java.util.*;

public class Deuteronomy_29_Chapter_Lv1 {
    record Covenant(String version, String location, List<String> terms) {}

    static Covenant renew(Covenant old, String newVersion, String location, List<String> newTerms) {
        System.out.printf("계약 갱신: %s → %s @ %s%n", old.version(), newVersion, location);
        var combined = new ArrayList<>(old.terms());
        combined.addAll(newTerms);
        return new Covenant(newVersion, location, combined);
    }

    public static void main(String[] args) {
        var horeb = new Covenant("v1-호렙", "시내산", List.of("십계명 준수", "번제 드림"));
        var moab  = renew(horeb, "v2-모압", "모압평야", List.of("땅 입성 조건", "지속 순종"));
        moab.terms().forEach(t -> System.out.println("  • " + t));
    }
}

def renew(old, new_version, location, new_terms):
    print(f"계약 갱신: {old['version']}{new_version} @ {location}")
    return {"version": new_version, "location": location, "terms": old["terms"] + new_terms}

if __name__ == "__main__":
    horeb = {"version": "v1-호렙", "location": "시내산", "terms": ["십계명 준수", "번제 드림"]}
    moab  = renew(horeb, "v2-모압", "모압평야", ["땅 입성 조건", "지속 순종"])
    for t in moab["terms"]:
        print(f"  • {t}")

Comments

Avatar
 2026년 7월 10일 07:28분

계약 갱신 시 이전 버전 이력을 보존하는 것이 법적 안전성의 핵심이네요.



Search

← 목록으로