Skip to content

KCL: More flexible vector::cross #7837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adamchalmers
Copy link
Contributor

@adamchalmers adamchalmers commented Jul 18, 2025

Previously, the example KCL test would not run, it would fail at runtime with an error that you can't convert [number(unknown); 3] to point3d.

@adamchalmers adamchalmers requested a review from a team as a code owner July 18, 2025 17:14
Copy link

vercel bot commented Jul 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2025 5:24pm

jtran
jtran previously approved these changes Jul 18, 2025
Copy link

codspeed-hq bot commented Jul 18, 2025

CodSpeed Instrumentation Performance Report

Merging #7837 will not alter performance

Comparing achalmers/generalize-cross (e92f29c) with main (3b97e87)

Summary

✅ 87 untouched benchmarks

@nrc
Copy link
Contributor

nrc commented Jul 23, 2025

From Slack, I think the easiest thing here is to emulate a generic by implementing in Rust. The better but harder solution is to make Length and Angle introduce an implicit generic (which was my eventual plan for those).

@jtran jtran dismissed their stale review July 29, 2025 12:57

This is no longer needed for hole support. Maybe we should implement this in Rust.

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.

3 participants